Skip to main content

Keywords

Flow-Wing programming language supports the following keywords, grouped by category:

Types

KeywordDescriptionDocs
int32-bit integer typeData Types
int88-bit integer typeData Types
int6464-bit integer typeData Types
strString typeData Types
charCharacter type (single Unicode character)Data Types
deciDecimal type (64-bit)Data Types
deci3232-bit decimal typeData Types
boolBoolean typeData Types
nthgRepresents 'nothing' or 'void'Data Types
unknownRepresents an unknown typeData Types

Literal Values

KeywordDescriptionDocs
trueBoolean true valueData Types
falseBoolean false valueData Types
nullNull value; type of the null literalData Types

Control Flow

KeywordDescriptionDocs
ifConditional statementOr if else Statement
orLogical OR operator / alternative if branchOr if else Statement
elseAlternative branch in conditional statementOr if else Statement
switchSwitch statementSwitch Statement
caseCase in a switch statementSwitch Statement
defaultDefault case in a switch statementSwitch Statement

Loops

KeywordDescriptionDocs
whileLooping statementWhile Loop
forLooping statementFor Loop
toUsed in range expressionsFor Loop
continueSkip to the next iteration in a loopWhile Loop
breakExit from a loopWhile Loop

Declarations

KeywordDescriptionDocs
varVariable declarationVariables and Constants
constConstant declarationVariables and Constants
funFunction declarationDeclare and Define Functions
classClass declarationClass
typeDefine a custom typeCustom Types and Objects
declForward-declare a type/functionDeclare and Define Functions
returnReturn a value from a functionDeclare and Define Functions

Modules & Imports

KeywordDescriptionDocs
bringImport a module or fileBring Import Exports
exposeExpose functionality of a moduleBring Import Exports
fromUsed in import statementsBring Import Exports
moduleModule declarationCreating and Using Modules

Object-Oriented

KeywordDescriptionDocs
newInstantiate a class or objectClass
extendsInherit from a superclassInheritance
inoutParameter passing modeDeclare and Define Functions
asType casting or aliasingData Types

Other

KeywordDescriptionDocs
fillFill a data structureFill Expression